package lex.dm.ui.actions;

import java.io.File;

import lex.dm.DTree;
import lex.dm.loader.AbstractDataLoader;
import lex.dm.loader.WisconsinBreastCancerLoader;
import lex.dm.utils.Prefs;

public class WisconsinBreastCancerAction extends AbstractLoadAction
{
	private WisconsinBreastCancerLoader loader = null;

	public WisconsinBreastCancerAction()
	{
		this.setName( "Wisconsin Breast Cancer" );
	}

	@Override
	protected File getDataFile()
	{
		return Prefs.getWisconsinBreastCancerFile();
	}

	@Override
	protected AbstractDataLoader getDataLoader()
	{
		if( null == loader )
			loader = new WisconsinBreastCancerLoader( DTree.getApplication().getConnection(),
				Prefs.BREAST_CANCER_WISCONSIN_TABLE );
		return loader;
	}
}
